// $URL: http://mingw-lib.googlecode.com/svn/trunk/working/twitpic/widget.h $
// $Rev: 72 $
// $Author: akio.miyoshi $
// $Date:: 2010-05-11 07:08:02 +0000#$

#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QtCore>
#include "nam.h"

namespace Ui {
    class Widget;
}

class Widget : public QWidget {
    Q_OBJECT
public:
    Widget(QWidget *parent = 0);
    ~Widget();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::Widget *ui;
    NetworkAccessManager *nam;
    void setDesktopFile(QFile &file, QString name);
    void saveDesktopFile(QString name, QByteArray bytes);
    //void backupXmlBody(QByteArray bytes);
    //void parseXml(QByteArray &xml);
    //void parseXmlFor4U(QByteArray &xml);

private slots:
    void on_pushButton_clicked();
};

#endif // WIDGET_H
